package com.sixth.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * stafftransfer
 * @author 
 */
@Data
public class Stafftransfer implements Serializable {
    private Integer id;

    /**
     * 平调员工编号
     */
    private Integer staffid;

    /**
     * 旧分店编号
     */
    private Integer branchid;

    /**
     * 旧部门编号
     */
    private Integer deptid;

    /**
     * 平调的新分店编号
     */
    private Integer newbranchid;

    /**
     * 平调的新部门编号
     */
    private Integer newdeptid;

    /**
     * 申请时间
     */
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date applytime;

    /**
     * 审核时间
     */
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date extime;

    /**
     * 申请人编号
     */
    private Integer applyid;

    /**
     * 审核人编号
     */
    private Integer exid;

    /**
     * 状态
     */
    private Integer state;
    //员工
    private Staff staff;
    //老店
    private Branch branch;
    //新店
    private Branch newbranch;
    //老部门
    private Department department;
    //新部门
    private Department newdepartment;
    //申请人
    private Staff applystaff;
    //审核人
    private Staff exstaff;

    private static final long serialVersionUID = 1L;
}